using AutoMapper;
using Ellwood.Manage.Common.Core.result;
using Ellwood.Manage.Mapper.EntityDto;
using Ellwood.Manage.Models.Entity;

namespace Ellwood.Manage.Business.MapConfig;

public class  AutoMapperConfigs: Profile
{
    
    /// <summary>
    /// 配置映射关系，在实例化当前这个类的时候，就要处理好
    /// </summary>
    public AutoMapperConfigs()
    {
        CreateMap<SysUser,SysUserDto>().ReverseMap();
        CreateMap<PagingData<SysUser>,PagingData<SysUserDto>>().ReverseMap();
    }
}